![]() |
Documentation for Users
2.0.6
Perception Toolbox for Virtual Reality (PTVR) Manual
|
You can recover the position coordinates (specified in the Global Coordinate System) of an object by using the following code:
my_object.get_position ()
a/
my_object.get_position () does not return the correct coordinates of "my_object" if my_object has been rotated before with either my_object.rotate_to_look_at () or rotate_to_look_at_in_opposite_direction ().
b/
This limitation also occurs if the parent of "my_object" (if there is a parent) has been rotated either with my_object.rotate_to_look_at () or my_object.rotate_to_look_at_in_opposite_direction ().
More information on orientations of objects: HERE
Path of Demos: ...\PTVR_Researchers\Python_Scripts\Demos\Coordinate_Systems\
| Python file | Description |
|---|---|
| 50_get_global_coordinates_of_objects.py | Does what it says. |
| 51_get_global_coordinates_of_objects_placed_on_tangent_screen.py | Does what it says.
|